package com.labor_management_system.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * 
 * @TableName project_list
 */
@TableName(value ="project_list")
@Data
//项目清单
public class ProjectList implements Serializable {
    /**
     * 
     */
    @TableId
    @JsonProperty("projectListId")
    private String projectListId;

    /**
     * 
     */
    @JsonProperty("projectId")
    private String projectId;

    /**
     * 
     */
    @JsonProperty("projectListName")
    private String projectListName;

    /**
     * 
     */
    @JsonProperty("unitOfMeasure")
    private String unitOfMeasure;

    /**
     * 
     */
    @JsonProperty("amountOfWork")
    private Integer amountOfWork;

    /**
     * 
     */
    @JsonProperty("comprehensiveUnitPrice")
    private Double comprehensiveUnitPrice;

    /**
     * 
     */
    @JsonProperty("note")
    private String note;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProjectList other = (ProjectList) that;
        return (this.getProjectListId() == null ? other.getProjectListId() == null : this.getProjectListId().equals(other.getProjectListId()))
            && (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
            && (this.getProjectListName() == null ? other.getProjectListName() == null : this.getProjectListName().equals(other.getProjectListName()))
            && (this.getUnitOfMeasure() == null ? other.getUnitOfMeasure() == null : this.getUnitOfMeasure().equals(other.getUnitOfMeasure()))
            && (this.getAmountOfWork() == null ? other.getAmountOfWork() == null : this.getAmountOfWork().equals(other.getAmountOfWork()))
            && (this.getComprehensiveUnitPrice() == null ? other.getComprehensiveUnitPrice() == null : this.getComprehensiveUnitPrice().equals(other.getComprehensiveUnitPrice()))
            && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProjectListId() == null) ? 0 : getProjectListId().hashCode());
        result = prime * result + ((getProjectId() == null) ? 0 : getProjectId().hashCode());
        result = prime * result + ((getProjectListName() == null) ? 0 : getProjectListName().hashCode());
        result = prime * result + ((getUnitOfMeasure() == null) ? 0 : getUnitOfMeasure().hashCode());
        result = prime * result + ((getAmountOfWork() == null) ? 0 : getAmountOfWork().hashCode());
        result = prime * result + ((getComprehensiveUnitPrice() == null) ? 0 : getComprehensiveUnitPrice().hashCode());
        result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", projectListId=").append(projectListId);
        sb.append(", projectId=").append(projectId);
        sb.append(", projectListName=").append(projectListName);
        sb.append(", unitOfMeasure=").append(unitOfMeasure);
        sb.append(", amounOfWork=").append(amountOfWork);
        sb.append(", comprehensiveUnitPrice=").append(comprehensiveUnitPrice);
        sb.append(", note=").append(note);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}